//
//  NewLecturTableHead.m
//  test
//
//  Created by 李彦宏 on 2018/3/8.
//  Copyright © 2018年 朱圳. All rights reserved.
//

#import "NewLecturTableHead.h"

#define black [UIColor blackColor]//字体颜色
#define FontSize [UIFont systemFontOfSize:15]

@implementation NewLecturTableHead

//自定义head初始化方法
- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        [self setUI];
    }
    return self;
}
//添加子控件
-(void)setUI{
    UILabel *lb1=[[UILabel alloc]initWithFrame:CGRectMake(15, 8, 35, 25)];
    lb1.text=@"学生";
    lb1.textColor=black;
    lb1.font=FontSize;
    lb1.textAlignment=NSTextAlignmentCenter;
    [self.contentView addSubview:lb1];
    
    UILabel *lb3=[[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth/4-10, 8, 60, 25)];
    lb3.text=@"课时(分)";
    lb3.textColor=black;
    lb3.font=FontSize;
    lb3.textAlignment=NSTextAlignmentCenter;
    [self.contentView addSubview:lb3];
    UILabel *lb4=[[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth/2-10, 8, 35, 25)];
    lb4.text=@"单价";
    lb4.textColor=black;
    lb4.font=FontSize;
    lb4.textAlignment=NSTextAlignmentCenter;
    [self.contentView addSubview:lb4];
    UILabel *lb5=[[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth*0.7-15, 8, 35, 25)];
    lb5.text=@"课酬";
    lb5.textColor=black;
    lb5.font=FontSize;
    lb5.textAlignment=NSTextAlignmentCenter;
    [self.contentView addSubview:lb5];
    UILabel *lb6=[[UILabel alloc]initWithFrame:CGRectMake(ScreenWidth-50, 8, 35, 25)];
    lb6.text=@"操作";
    lb6.textColor=black;
    lb6.font=FontSize;
    lb6.textAlignment=NSTextAlignmentCenter;
    [self.contentView addSubview:lb6];
   
}
@end
